<template>
  <div>
    <el-row :gutter="gutter">
      <el-col :span="24/span" v-for="(item,index) in list" :key="index">
        <div class="grid-content bg-purple">
          <i :class="'fa fa-'+item" style="margin-left: 7px" :key="index">{{' fa fa-'+item}}</i>
        </div>
      </el-col>
      <!--<el-col :span="24/span"><div class="grid-content bg-purple"></div></el-col>-->
      <!--<el-col :span="24/span"><div class="grid-content bg-purple"></div></el-col>-->
      <!--<el-col :span="24/span"><div class="grid-content bg-purple"></div></el-col>-->
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'List',
  props: {
    list: {
      type: Array
    },
    span: {
      type: Number
    },
    gutter: {
      type: Number
    }
  }
}
</script>

<style scoped>

  .bg-purple {
    background: #d3dce6;
  }

  .grid-content {
    border-radius: 4px;
    min-height: 36px;
  }

</style>
